package app.server.project.main.service.bo;

import app.server.project.main.service.db.entity.user.OrderDetailEntity;
import app.server.project.main.service.db.entity.user.RechargeOrderEntity;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor(staticName = "of")
public class TONRetryBO {

    private RechargeOrderEntity rechargeOrderEntity;
    private OrderDetailEntity orderDetailEntity;

    private int maxRetry;

    public synchronized void addRetry() {
        this.maxRetry++;
    }

    public synchronized void setMaxRetry(int maxRetry) {
        this.maxRetry = maxRetry;
    }
}
